﻿@inherits LayoutComponentBase
@inject NavigationManager Navigation
@inject IMasaStackConfig MasaStackConfig

<SLayout OnSignOut="SignOut" WhiteUris="_whiteUris" IsShowEnvironmentSwitch Class="fill-height"
         Logo="https://cdn.masastack.com/stack/images/logo/MASAStack/logo-h-en.png"
         MiniLogo="/_content/Masa.Scheduler.Web.Admin/img/mainLayout/logo.svg">
    @Body
</SLayout>

@code {
    [Inject]
    public IPopupService PopupService { get; set; } = default!;

    [Inject]
    public SchedulerServerCaller SchedulerServerCaller { get; set; } = default!;

    private readonly List<string> _whiteUris = new() { "/job/task/*" };

    private bool SignOut()
    {
        Navigation.NavigateTo("/Logout", true);
        return true;
    }
}